package com.foryou.wechat.service;

import com.foryou.wechat.model.dto.SubjectDTO;
import com.foryou.wechat.utils.Response;

import java.util.Map;

/**
 * <h1>主题信息接口汇总</h1>
 * Created by Lee.
 */
public interface SubjectService {

    /**
     * <h2>创建主题</h2>
     * @param name
     * @return
     */
    int addSubject(String name);

    /**
     * <h2>修改主题</h2>
     * @return
     */
    int updateSubject(SubjectDTO subjectDTO);

    /**
     * <h2>查询主题集合</h2>
     * @param params
     * @return
     */
    Response querySelectList(Map<String,Object> params);

    /**
     * <h2>得到主题信息</h2>
     * @param subjectId
     * @return
     */
    Response getSubjectDetail(Long subjectId);

    /**
     * <h2>查询所有可用的主题集合</h2>
     * @return
     */
    Response querySelectList();

}
